package com.fishery.processing.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.fishery.processing.entity.Craft;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fishery.processing.entity.Factory;
import com.fishery.processing.entity.Input;
import com.fishery.processing.entity.vo.CraftVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ${author}
 * @since 2021-01-14
 */
public interface CraftService extends IService<Craft> {

    public int createCraft(Craft craft);

    public int deleteCraft(String craftId);

    public int updateCraft(Craft craft);

    public Craft findCraftById(String craftId);

    public Craft searchCraftById(String craftId);

    public int addInput(String craftId,String inputId);

    public int removeInput(String craftId,String inputId);

    public IPage<Craft> searchCraftsOfProduct(String productId, Integer page, Integer size);

    public List<Craft> searchCraftsOfProduct(String productId);

    public IPage<Craft> searchCraftsOfFactory(String factoryId,Integer page,Integer size);

    public List<Craft> searchCraftsOfFactory(String factoryId);


}
